<div class="pageContent">
	
	<form method="post" action="/index.php?act=admin&st=adminModify" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone)">
		{if $userInfo.admin_user_id}
		<input type="hidden" name="admin_user_id" value="{$userInfo.admin_user_id}" />
		{/if}
		<input type="hidden" value="{$session.token}" name="token">
		<div class="pageFormContent" layoutH="58">

			<div class="unit">
				<label>用户名：</label>
				<input type="text" name="user_name" maxlength="30" class="required" value="{$userInfo.user_name}" errormsg="请输入用户名" style="width:150px"/>
			</div>
			<div class="unit">
				<label>用户密码：</label>
				<input type="password" name="user_pwd" id="user_new_pwd" minlength="{$min_password}" class="password" value="" errormsg="请输入用户密码" style="width:150px"/>
				<span class="info">&nbsp;&nbsp;不修改密码,请留空</span>
			</div>
			<div class="unit">
				<label>&nbsp;&nbsp;&nbsp;</label>
				<div id="tips">
					<span></span><span></span><span></span><span></span>
				</div>
			</div>
			<div class="unit">
				<label>确认密码：</label>
				<input type="password" name="user_comfirm_pwd" equalto="#user_new_pwd" minlength="{$min_password}" class="password" value="" errormsg="请输入确认密码" style="width:150px"/>
			</div>
			<div class="unit">
				<label>角色名称：</label>
				
					{if $supper_auth && $userid != $current_user_id}
					<select class="combox" name="admin_type">
					<option value="1" {if $userInfo.admin_type=="1"} selected='selected'{/if}>超级管理员</option>
    				<option value="2" {if $userInfo.admin_type=="2"} selected='selected'{/if}>普通管理员</option>
					</select>
					{else}
    	  				{$adminType[$userInfo.admin_type]}
    				{/if}
    			
			</div>
			<div class="unit">
				<label>真实姓名：</label>
				<input type="text" name="real_name" maxlength="30" class="required" value="{$userInfo.real_name}" errormsg="请输入真实姓名" style="width:150px"/>
			</div>
			<div class="unit">
				<label>手机：</label>
				<input type="text" name="phone" class="required phone" value="{$userInfo.phone}" errormsg="请输入手机号码" style="width:150px"/>
			</div>
			<div class="unit">
				<label>邮箱：</label>
				<input type="text" name="email" class="required email" value="{$userInfo.email}" errormsg="请输入邮箱地址" style="width:150px"/>
			</div>			
			<div class="unit">
				<label>公司部门及职位：</label>
				<input type="text" name="part" class="required" value="{$userInfo.part}" errormsg="请输入公司部门及职位" style="width:150px"/>
			</div>
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
	
</div>
<script type="text/javascript">
$(document).ready(function () {
    pageLoad();

});
</script>